VERSION 5.00
Begin VB.Form BloodTransForm 
   BackColor       =   &H00FFFFFF&
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   9000
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   12000
   LinkTopic       =   "Form1"
   ScaleHeight     =   9000
   ScaleWidth      =   12000
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   Begin VB.CommandButton Back_Button 
      Caption         =   "Back"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      TabIndex        =   7
      Top             =   7560
      Width           =   1935
   End
   Begin VB.CommandButton DontKnow_Button 
      Caption         =   "Don't Know"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   840
      TabIndex        =   5
      Top             =   6720
      Width           =   1935
   End
   Begin VB.CommandButton No_Button 
      Caption         =   "No"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   840
      TabIndex        =   4
      Top             =   4560
      Width           =   1935
   End
   Begin VB.CommandButton Yes_Button 
      Caption         =   "Yes"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   840
      TabIndex        =   3
      Top             =   5640
      Width           =   1935
   End
   Begin VB.CommandButton Cancel_Button 
      BackColor       =   &H008080FF&
      Caption         =   "Cancel"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   6540
      Width           =   1935
   End
   Begin VB.CommandButton Next_Button 
      Caption         =   "Next"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      TabIndex        =   1
      Top             =   5520
      Width           =   1935
   End
   Begin VB.CommandButton Clear_Button 
      Caption         =   "Clear"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      TabIndex        =   0
      Top             =   4500
      Visible         =   0   'False
      Width           =   1935
   End
   Begin VCT.ClientSexHistCtrl SEXHX 
      Height          =   3855
      Left            =   300
      TabIndex        =   6
      Top             =   240
      Width           =   11415
      _ExtentX        =   20135
      _ExtentY        =   6800
   End
End
Attribute VB_Name = "BloodTransForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'TRANSFUS - Has client previously had a blood transfusion
'Back to PREG

Private Sub Back_Button_Click()
   PREG = ""
   TRANSFUS = ""
   If SEX = "1" Then 'Male
      EVERAPED = ""
      EverRapedForm.Show
   Else
      PregnantForm.Show
   End If
   Unload Me
End Sub

Private Sub Cancel_Button_Click()
   VCTStageForm.Show
   Unload Me
End Sub

Private Sub DontKnow_Button_Click()
   TRANSFUS = "97"
   SEXHX.UpdateData
   Next_Button.Enabled = True
End Sub

Private Sub Form_Load()
  SEXHX.UpdateData
  SEXHX.SetStar (8)
  Next_Button.Enabled = False
End Sub

Private Sub Next_Button_Click()
   Dim NowYear, NowMonth, NowTotalMonths, SexTotalMonths As Integer
   
   NowYear = Year(Now())
   NowMonth = Month(Now())
   NowTotalMonths = (NowYear * 12) + NowMonth
   SexTotalMonths = (Val(SYEAR) * 12) + SMONTH
   
   'do some branching
   If EVERHAD = "0" Or (NowTotalMonths - SexTotalMonths > 5) Then
      PART6MO = 0
      RecentPartnerDetails = "Not Applicable"
      STISymptomsForm.Show
   Else
      PartnersLast6MonthsForm.Show
   End If
   Unload Me
End Sub

Private Sub No_Button_Click()
   TRANSFUS = "00"
   SEXHX.UpdateData
   Next_Button.Enabled = True
End Sub

Private Sub Yes_Button_Click()
   TRANSFUS = "01"
   SEXHX.UpdateData
   Next_Button.Enabled = True
End Sub
